﻿<%@ page language="C#" autoeventwireup="true" codebehind="Stream.aspx.cs" inherits="fbasync.web.Stream" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>Stream</title>
  <link href="main.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="frm" runat="server">
  <div>
    <h1>Stream.Publish</h1>
    Message:<br />
    <asp:textbox id="uiMessage" runat="server">Bla-bla-bla</asp:textbox><br />
    <asp:linkbutton id="uiPublish" runat="server" onclick="OnPublish">Publish</asp:linkbutton><br />
    <asp:multiview id="uiViews" runat="server" visible="false">
      <asp:view id="uiResultView" runat="server">
        Post Id:
        <asp:literal id="uiResult" runat="server" />
      </asp:view>
      <asp:view id="uiPermissionView" runat="server">
        <asp:label forecolor="Red" runat="server">You didn't grant the application 'publish_stream' permission</asp:label><br />
        <asp:hyperlink id="uiAddPermissionLink" target="_top" navigateurl="http://www.facebook.com/connect/prompt_permissions.php?api_key={0}&next={1}&fbconnect=true&v=1.0&display=popup&extern=1&ext_perm=publish_stream" runat="server">Click me to provide the application with 'publish_stream' permission.</asp:hyperlink>
      </asp:view>
    </asp:multiview>
  </div>
  </form>
</body>
</html>
